FROM python:3.8

COPY ./dc-api/requirements.txt ./

RUN pip install --no-cache-dir -r requirements.txt -i https://mirrors.aliyun.com/pypi/simple/

WORKDIR /app

COPY ./dc-api/ ./

ENV PYTHONPATH="/app"
# ENTRYPOINT ["python", "main.py", "init"]

CMD [ "python", "main.py", "run"]